<!-- 集装箱明细展开图标 -->
<!--<div class="box-grid-wks inline-block">-->

  <% if containers.size > 0 then %>
      <% containers.each do |ctn| %>
          <div class="box box-row-map-view" href="javascript:return false;">
            <span style="width:95px;text-indent:2px"><%= ctn.ctn_no %></span>
            <span style="width:50px;text-indent:5px"><%= ctn.status_enum.label %></span>
            <span style="width:80px; text-indent:5px" class="ctn-location ellipsis" id="ctn_address_<%= ctn.ctn_no %>">
            </span>
            <span style="width:65px;" class="op-btns">
            <input type="hidden" class="vehicle_gps_<%= ctn.ctn_no %>" value="<%=  gps_str ctn.location%>"/>
            <input type="hidden" class="ctn_type" value="<%= ctn.ctn_type %>"/>
            <input type="hidden" class="seal_no" value="<%= ctn.seal_no %>"/>
            <input type="hidden" class="vehicle_no" value="<%= ctn.vehicle_no %>"/>
            <input type="hidden" class="ctn_no" value="<%= ctn.ctn_no %>"/>
            <% if ctn.can_track? %>
                <a href="###" class="track_link_<%= ctn.vehicle_no %>" onclick="toggleTrack( '<%= ctn.vehicle_no %>', 'track')">
                  <img src="/assets/map/track.png" style="vertical-align: middle;" title="跟踪"/>
                </a>
                <a href="###" style="display: none" class="cancel_track_<%= ctn.vehicle_no %>" onclick="toggleTrack( '<%= ctn.vehicle_no %>', 'stopTrack')">
                  <img src="/assets/map/cancel_track.png" style="vertical-align: middle;" title="取消跟踪"/>
                </a>
              <% else %>
                <a href="###" onclick="show_notice('<%=  t 'activerecord.attributes.util.show_notice' %>')">
                  <img src="/assets/map/can_not_track.png" style="vertical-align: middle;" title="不可跟踪"/>
                </a>
              <% end %>

              <a class="location-btn" href="###" onclick="markVehicle('<%= ctn.vehicle_no %>')">
                <img src="/assets/map/locate.png" style="vertical-align: middle;" title="定位"/>
              </a>
              <a href="###" class="show-ctn-history-btn his_btn_<%= ctn.ctn_no %>" bill_no='<%= ctn.bl.bl_no %>' ctn_no="<%= ctn.ctn_no %>" onclick="get_ctn_history('<%= ctn.bl.bl_no %>', '<%= ctn.ctn_no %>')">
                <img src="/assets/map/history.png" style="vertical-align: middle;" title="历史"/>
              </a>
            </span>

          </div>


      <% end %>
  <% else %>
      <div class="history">
        <span style="width: 100%;text-align: center;"><%= t 'activerecord.attributes.util.no_record' %></span>
      </div>
  <% end %>
<!--</div>-->





